
function tableCount(t)
	local nCount = 0
	for i,v in pairs(t) do
		nCount = nCount + 1
	end
	return nCount
end

function pointIsInNode(objnode, point)
	local nodePoint = objnode:convertToNodeSpace(point)
	
	local rect = CCRect(0,0,0,0)
	rect.size = objnode:getContentSize()
	
	return CCRect:CCRectContainsPoint(rect, nodePoint)
end
